<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看接口</title>
    <jsp:include page="../../../head.jsp"/>
</head>
<script type="text/javascript">
    var formSetting = {
        title: "查询公司接口",
        columns: [{
            name: "systemValue.identifier",
            label: "接口类型",
            type: "dropdown",
            dropdownType: "ajax",
            minLength: 0,
            url: "dropdown-businessType"
        }],
        grid: {
            id: "sys_cop_itfs",
            title: "接口模板列表",
            url: "itf-templateData",
            colModel: [{
                index: "id",
                name: "id",
                hidden: true
            }, {
                index: "name",
                name: "name",
                label: "接口名称",
                width: '30%'
            }, {
                index: "systemValue.chn",
                name: "systemValue.chn",
                label: "接口类型",
                width: '30%'
            }, {
                index: "use_state",
                name: "use_state",
                label: "使用状态",
                width: '30%',
                formatter: function (cellvalue, options, rowObject) {
                    if (cellvalue == "0") {
                        return "启用";
                    } else {
                        return "禁用";
                    }
                }
            }],
            jsonReader: {
//                root: "sysInterfaces"
            }
        }
    };
    $(document).ready(function () {
        $("#allItf").mrdForm(formSetting);
        $("#allItf").mrdForm("resize");
    });
</script>
<body>
<div id="allItf"></div>
</body>
</html>
